package cn.com.ccxe.dao;

import java.util.List;

import cn.com.ccxe.core.entity.Favorite;
import cn.com.ccxe.core.entity.Keyword;

public interface FavoriteDao {

	public OperationStatus add(int websiteTypeId, String userId);
	public OperationStatus del(int websiteId, String userId);
	public List<Favorite> getAllByUser(String userId);
	
	/**
	 * 先删除站点关键字关联表中的数据，再删除收藏夹得数据
	 * @param id
	 * @return
	 */
	public OperationStatus del(int id);
	
	/**
	 * 获取收藏编号
	 * @return
	 */
	public int getFavoriteId(int websiteTypeId, String userId);
	
	/**
	 * 为收藏的站点附加关键字
	 * @param favoriteId
	 * @param keywordId
	 * @return
	 */
	public OperationStatus addKeyword(int favoriteId, int keywordId);
	
	/**
	 * 获取没有被关联的关键字
	 * @param monitorTypeId
	 * @param userId
	 * @return
	 */
	public List<Keyword> getKeywordListIsNot(int monitorTypeId, String userId, int websiteId);
	public List<Keyword> getKeywordList(int mnitorTypeId, String userId, int websiteId);
	public OperationStatus delKeyword(int favoriteId, int keywordId);
	
	public OperationStatus addFavoriteKeyword(int keywordId, int moduleId, String userId);
	public List<Keyword> getSelectedKeywordList(int moduleId, String userId);
	public List<Keyword> getNotSelectedKeywordList(int moduleId, String userId);
	public OperationStatus delFavoriteKeyword(int keywordId, int moduleId,String userId);
	
}
